CC = gcc
CFLAGS = -I/usr/local/include/opencv
#LINKFLAGS =-lcv -lcvaux -lcxcore -lhighgui -Wl,/usr/local/lib 
LINKFLAGS =`pkg-config opencv --libs --cflags opencv` 
LIBPATH = -L/usr/local/lib
TARGET = testcv.c
all:
	$(CC) $(TARGET) $(CFLAGS) $(LIBPATH) $(LINKFLAGS) -o main
clean:
	rm main 	 
